cmake_minimum_required(VERSION 3.5)

project(${EulerName})

add_library(${EulerName} Euler.cpp EulerSettings.cpp FactoryExport.cpp)

if(NOT BUILD_SHARED_LIBS)
  set_target_properties(${EulerName} PROPERTIES COMPILE_DEFINITIONS "RUNTIME_STATIC_LINKING")
endif(NOT BUILD_SHARED_LIBS)

add_precompiled_header(${EulerName} Core/Modelica.h )
target_link_libraries (${EulerName} ${SolverName} ${Boost_LIBRARIES} ${LAPACK_LIBRARIES})


install(FILES $<TARGET_PDB_FILE:${EulerName}> DESTINATION ${LIBINSTALLEXT} OPTIONAL)

install(TARGETS ${EulerName} DESTINATION ${LIBINSTALLEXT})
install(FILES "config/EulerSettings.xml" DESTINATION share/omc/runtime/cpp/config)
